﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="BlogDetails.aspx.vb" Inherits="BlogDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">

<p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" AllowSorting="True" 
            style="margin-left: 16px" BorderColor="#CCCCFF" HorizontalAlign="Center" 
            Width="800px">
            <Columns>
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" />
        <asp:BoundField DataField="Contributor" HeaderText="Contributor" 
            SortExpression="Contributor" />
        <asp:BoundField DataField="BlogOwnerPhoto" HeaderText="BlogOwnerPhoto" 
            SortExpression="BlogOwnerPhoto" />
        <asp:BoundField DataField="Title" HeaderText="Title" 
            SortExpression="Title" />
        <asp:BoundField DataField="Post" HeaderText="Post" 
            SortExpression="Post" />
            <asp:BoundField DataField="DatePosted" HeaderText="DatePosted" 
            SortExpression="DatePosted" />
        
                <asp:BoundField DataField="BlogOwner" HeaderText="BlogOwner" 
                    SortExpression="BlogOwner" />
        
    </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [ID], [Contributor], [BlogOwnerPhoto], [Title], [Post], [DatePosted], [BlogOwner] FROM [Blogs] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    
</asp:Content>

